<%@ page contentType="text/html;charset=UTF-8" language="java" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html><% request.setAttribute("ctx", request.getContextPath());%>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Dashboard</title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  <%--<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.css" rel="stylesheet">--%>
  <link href="http://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
</head>
<body>
<div class="well" style="width:400px; margin: 40px auto;">
  <h1>Welcome <%=session.getAttribute("nickname") %></h1>
  <div>
    <p>
      <a href="${ctx}/logout" class="btn btn-primary">登出</a>
    </p>
  </div>
</div>
<script src="http://cdn.bootcss.com/jquery/2.2.4/jquery.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="${ctx}/static/js/bootstrap3-validation.js"></script>
<script>
  function doSubmit() {
    return $('#m_form').valid();
  }
  $(function() {
    $('form').validation();
  })
</script>
</body>
</html>
